{if $bIsDeleted}
<div style="padding:6px;font-size:10pt;font-weight:bold;">
{language text="Mod_Menu.page_deleted"}
</div>
{/if}
{if $bUpdatedCount}
<div style="padding:6px;font-size:10pt;font-weight:bold;">
{language text="Mod_Menu.count.updated"}
</div>
{/if}
<form method="post" action="{url link='admin.main.menus'}">
<div><input type="hidden" name="ordering" value="true" /></div>
<table style="width:100%;">
<tr>
	<th>{language text="Mod_Menu.order"}</th>
	<th>{language text="Mod_Menu.title"}</th>
	<th>{language text="Mod_Menu.url"}</th>
	<th style="text-align:center;">{language text="Mod_Menu.location"}</th>
	<th style="text-align:center;">{language text="Mod_Menu.actions"}</th>
</tr>
{foreach from=$aMenus item=aMenu}
<tr>
	<td class="row1" style="font-size:9pt;width:40px;text-align:center;">
	<input type="text" name="listing[{$aMenu.menu_id}]" value="{$aMenu.listing}" size="2" style="text-align:center;" />
	</td>
	<td class="row1" style="font-size:9pt;">
 	<a href="{url link=$aMenu.url bVerifyUrl=true}">{if $aMenu.is_module}{language text=$aMenu.title_menu}{else}{$aMenu.title_menu}{/if}</a>
 	</td>
 	<td class="row1" style="font-size:9pt;">
 	<a href="{url link=$aMenu.url bVerifyUrl=true}">{url link=$aMenu.url bVerifyUrl=true}</a>
 	</td>
 	<td class="row1" style="font-size:9pt;text-align:center;">
 		{if $aMenu.location == "0"}{language text="Mod_Menu.main"}
		{elseif $aMenu.location == "1"}{language text="Mod_Menu.header"}
		{elseif $aMenu.location == "2"}{language text="Mod_Menu.footer"}
		{/if}
 	</td> 	
 	<td class="row1" style="font-size:9pt;width:140px;text-align:center;">
 	<a href="{if $aMenu.is_module || $aMenu.parent}{url link=$aMenu.url}{else}{$aMenu.url}{/if}">{language text="Mod_Menu.view"}</a> |
 	<a href="{url link='admin.main.menus' action='create' id=$aMenu.menu_id}">{language text="Mod_Menu.edit"}</a> |
 	<a href="{url link='admin.main.menus' delete=$aMenu.menu_id}">{language text="Mod_Menu.delete"}</a>
 	</td>
</tr>
{foreachelse}
<tr>
	<td style="padding:5px;font-size:9pt;">
		{language text="Mod_Site.no.pages"}
	</td>
</tr>
{/foreach}
{if $aMenus}
<tr>
    <td class="catBottom" colspan="5">
	<input type="submit" value="{language text="Mod_Menu.update.order"}" />
    </td>
</tr>
{/if}
</table>
</form>